package com.ss.android.account.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class UserAuditModel extends BaseModel implements Parcelable {
    public static class AuditModel implements Parcelable {
        public static final Parcelable.Creator CREATOR;
        @SerializedName("audit_expire_time")
        private long auditExpireTime;
        @SerializedName("audit_info")
        private UserModel auditModel;
        @SerializedName("is_auditing")
        private boolean isAuditing;

        static {
            CREATOR = new Creator<AuditModel>() {
                public final AuditModel createFromParcel(Parcel arg2) {
                    return new AuditModel(arg2);
                }

                public final AuditModel[] newArray(int arg2) {
                    return new AuditModel[arg2];
                }
            };
        }

        protected AuditModel(Parcel arg3) {
            this.auditExpireTime = arg3.readLong();
            boolean v0 = arg3.readByte() != 0 ? true : false;
            this.isAuditing = v0;
            this.auditModel = arg3.readParcelable(UserModel.class.getClassLoader());
        }

        public AuditModel() {

        }

        public int describeContents() {
            return 0;
        }

        public long getAuditExpireTime() {
            return this.auditExpireTime;
        }

        public UserModel getAuditModel() {
            return this.auditModel;
        }

        public boolean isAuditing() {
            return this.isAuditing;
        }

        public void setAuditExpireTime(long arg2) {
            this.auditExpireTime = arg2;
        }

        public void setAuditModel(UserModel arg1) {
            this.auditModel = arg1;
        }

        public void setAuditing(boolean arg1) {
            this.isAuditing = arg1;
        }

        public void writeToParcel(Parcel arg3, int arg4) {
            arg3.writeLong(this.auditExpireTime);
            byte v0 = (byte) (this.isAuditing ? 1 : 0);
            arg3.writeByte(v0);
            arg3.writeParcelable(this.auditModel, arg4);
        }
    }

    public static final Parcelable.Creator CREATOR;
    @SerializedName("current_info")
    private UserModel currentModel;
    @SerializedName("pgc_audit_info")
    private AuditModel pgcAuditModel;
    @SerializedName("verified_audit_info")
    private AuditModel verifiedAuditModel;

    static {
        CREATOR = new Creator<UserAuditModel>() {
            public final UserAuditModel createFromParcel(Parcel arg2) {
                return new UserAuditModel(arg2);
            }

            public final UserAuditModel[] newArray(int arg2) {
                return new UserAuditModel[arg2];
            }
        };
    }

    protected UserAuditModel(Parcel arg2) {
        super(arg2);
        this.currentModel = arg2.readParcelable(UserModel.class.getClassLoader());
        this.pgcAuditModel = arg2.readParcelable(AuditModel.class.getClassLoader());
        this.verifiedAuditModel = arg2.readParcelable(AuditModel.class.getClassLoader());
    }

    public UserAuditModel() {

    }

    public int describeContents() {
        return 0;
    }

    public UserModel getCurrentModel() {
        return this.currentModel;
    }

    public AuditModel getPgcAuditModel() {
        return this.pgcAuditModel;
    }

    public AuditModel getVerifiedAuditModel() {
        return this.verifiedAuditModel;
    }

    public void setCurrentModel(UserModel arg1) {
        this.currentModel = arg1;
    }

    public void setPgcAuditModel(AuditModel arg1) {
        this.pgcAuditModel = arg1;
    }

    public void setVerifiedAuditModel(AuditModel arg1) {
        this.verifiedAuditModel = arg1;
    }

    public void writeToParcel(Parcel arg2, int arg3) {
        super.writeToParcel(arg2, arg3);
        arg2.writeParcelable(this.currentModel, arg3);
        arg2.writeParcelable(this.pgcAuditModel, arg3);
        arg2.writeParcelable(this.verifiedAuditModel, arg3);
    }
}

